package com.ccx.library.response;

import java.text.SimpleDateFormat;
import java.util.Date;

public abstract class DataResponse {

    public String getTime(){
        Date date = new Date();
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return format.format(date);
    }
    public String getTime(Date date){
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-mm-dd HH:mm:ss");
        return dateFormat.format(date);
    }

}
